# -*- coding: utf-8 -*-
"""
Show rules :-)
"""

from kivy.app import App

from model import gamestate
from ui.hat_widget import HatWidget


class RulesScreen(HatWidget):
    def __init__(self, game_state, presenter, **kwargs):
        super(RulesScreen, self).__init__(**kwargs)

        self.presenter = presenter
        self.game_state = game_state

    def leave(self):
        self.presenter.change_phase(gamestate.Phase.WELCOME)


class RulesApp(App):
    def build(self):
        return RulesScreen()


if __name__ == '__main__':
    RulesApp().run()
